package com.example.demo.Interceptor;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class LoginConfigurer implements  WebMvcConfigurer   {

	@Override
	public void addInterceptors(InterceptorRegistry registry) {
		registry.addInterceptor(new Login_interceptor()).excludePathPatterns("/layui/**","/ceshi.html/**",   "/js/**","*.js","/login.html","/background.jpg", "/User/**","/Cangku/**","/Department/**",
				"/Admin/**","/Bumen/**","/Chukujilu/**","/Chukusunhuai/**","/Danweixinxi/**","/Denglurizhi/**","/Rukujilu/**","/Rukusunhuai/**","/Yunshugongju/**","/Zhigong/**","/echarts/**");
		WebMvcConfigurer.super.addInterceptors(registry);
	}
}
